Repository navigation
fix(mcpx): read daemon.tsnetUpTimeout instead of the built-in default - #11920
Conversation
The tsnet listener and the client's tsnet dialer both waited defaults.TSNetUpTimeout, so setting daemon.tsnetUpTimeout changed nothing. The daemon now passes its setting to the listener and the client passes it to the dialer; an unset value still falls back to the default. Drops the consumed-test allowance that claimed the setting was read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Before:
daemon.tsnetUpTimeoutwas declared and documented, but the tsnet listener and the client's tsnet dialer both read the built-in 30s default. Setting it to give a slow tailnet join more time did nothing. The settings consumption test let it through with the note "read by transport_tsnet.go without an accessor", which wasn't true.After: the daemon's tsnet listener and the client's
tsnet://dialer both wait the configured budget, and only an unset value falls back to the default. The error on a failed join names the budget that was actually used.How:
tsnetTransportandTSNetDialertake anupTimeout,tsnetUpBudgetpicks it or the default,listenTSNetpassess.set.Duration("daemon.tsnetUpTimeout"), and the client passes its own setting toNewTSNetDialer. The allowance inconsumed_test.gois gone, since the setting is now read through an accessor.TestTSNetUpBudgetHonoursTheSettingcovers the fallback. The setting keeps its effect-probe exemption, since a real join still needs a tailnet. Found while working through #8468.Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit